package org.idea.spring.bean.life.beans;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author linhao
 * @Date created in 9:55 上午 2021/11/23
 */
@Configuration
@PropertySource(value = "META-INF/application.properties",encoding = "UTF-8")
public class ApplicationProperties {

    @Value("${user.id:1002}")
    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
